<?php
/**
 * PHP命令行传参
 */

/**
 * 提示用户输入，类似Python
 */
fwrite(STDOUT, "Enter your name: ");  
$name = trim(fgets(STDIN));  
fwrite(STDOUT, "Hello, $name!");  